 /*******************************************************************************
  * Copyright (c) 2004, 2006 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
  * Contributors:
  * IBM Corporation - initial API and implementation
  *******************************************************************************/

 package org.eclipse.ui.internal.handlers;

 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.keys.IBindingService;

 /**
  * A handler that displays the key assist dialog when executed.
  *
  * @since 3.1
  */
 public class ShowKeyAssistHandler extends WorkbenchWindowHandlerDelegate {

     /**
      * Opens the key assistant. This should never be called until initialization
      * occurs.
      *
      * @param event
      * Ignored
      * @return <code>null</code>
      */
     public Object execute(final ExecutionEvent event) {
         final IWorkbench workbench = PlatformUI.getWorkbench();
         final IBindingService bindingService = (IBindingService) workbench.getService(IBindingService.class);
         bindingService.openKeyAssistDialog();
         return null;
     }
 }

